package net.optix.ip.vo
{
	public class BidVO
	{
		public var bidID:int;
		public var id:int;
		public var firmID:int;
		public var budget:int;
		
		public var type:int;
		
		public var firmName:String;
		
		public static function purseBid(value:XML):BidVO
		{
			var bid:BidVO	=	new BidVO();
			try
			{
				bid.bidID	=	value.BidID;
				bid.id		=	value.InventionID;
				bid.firmID	=	value.FirmID;
				bid.budget	=	value.Budget;
				
				bid.firmName=	value.Name;
				
				bid.type	=	value.Type;
			}
			catch(error:Error){}
			return bid;
		}
	}
}